package com.ruoyi.crop.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @TableName city
 */
@TableName(value ="city")
@Data
public class City implements Serializable {
    /**
     *
     */
    @TableId
    private Integer cityId;

    /**
     *
     */
    private Integer pid;

    /**
     *
     */
    private String cityname;

    /**
     *
     */
    private Integer type;

    @TableField(exist = false)
    private List<City> children;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
